package com.dongao.activity;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class OfflineCourseActivity extends TabActivity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_offline_course);
		
		TabHost tabHost = getTabHost();
		
		Intent localIntent = new Intent();
		localIntent.setClass(this, LocalCourseActivity.class);
		TabHost.TabSpec localSpec = tabHost.newTabSpec("local");
		localSpec.setIndicator("播放");
		localSpec.setContent(localIntent);
		tabHost.addTab(localSpec);
		
		Intent downloadIntent = getIntent();
		downloadIntent.setClass(this, DownloadActivity.class);
		TabHost.TabSpec downSpec =  tabHost.newTabSpec("download");
		downSpec.setIndicator("可下载");
		downSpec.setContent(downloadIntent);
		tabHost.addTab(downSpec);
		
	}

}
